package com.demo.resourcecode.c5;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class PopulateDemo {

	public static void main(String[] args) {
		BeanFactory bf = new XmlBeanFactory(new ClassPathResource("populate.xml"));
		Populate populate = bf.getBean(Populate.class);
		System.out.println(populate.getStudent());
		Populate2 populate2 = bf.getBean(Populate2.class);
		System.out.println(populate2.getStudent());
	}

}
